projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23faf2b
)
USB: Make struct devrequest setup_packet local
author
Marek Vasut
<
[email protected]
>
Mon, 13 Feb 2012 18:58:18 +0000
(18:58 +0000)
committer
Wolfgang Denk
<
[email protected]
>
Sat, 3 Mar 2012 15:55:54 +0000
(16:55 +0100)
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Remy Bohmer <
[email protected]
>
Acked-by: Mike Frysinger <
[email protected]
>
common/usb.c
patch
|
blob
|
history
diff --git
a/common/usb.c
b/common/usb.c
index 81dcbe28113ae8e09f2320cdacec3402739b6862..3c9ede4b8e5cfd57c26775ec3cb1cf21d7bcbeda 100644
(file)
--- a/
common/usb.c
+++ b/
common/usb.c
@@
-73,7
+73,6
@@
static struct usb_device usb_dev[USB_MAX_DEVICE];
static int dev_index;
static int running;
static int asynch_allowed;
-static struct devrequest setup_packet;
char usb_started; /* flag for the started/stopped USB status */
@@
-180,6
+179,8
@@
int usb_control_msg(struct usb_device *dev, unsigned int pipe,
unsigned short value, unsigned short index,
void *data, unsigned short size, int timeout)
{
+ struct devrequest setup_packet;
+
if ((timeout == 0) && (!asynch_allowed)) {
/* request for a asynch control pipe is not allowed */
return -1;